package com.evil.file.api;

import com.evil.common.family.constant.ServiceNameConstant;
import com.evil.common.file.dto.download.history.AddFileDownloadHistoryReqDTO;
import com.evil.file.config.FileFeignErrorDecoder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 文件下载历史接口
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
@FeignClient(name = ServiceNameConstant.APPLICATION_SERVICE, configuration = {FileFeignErrorDecoder.class})
public interface RemoteFileDownloadHistoryService {

    /**
     * 新增文件下载记录
     *
     * @param addFileDownloadHistory addFileDownloadHistory
     */
    @PostMapping("/file/download-history/add")
    void add(@Validated @RequestBody AddFileDownloadHistoryReqDTO addFileDownloadHistory);
}
